#!/bin/bash

#set -xv


if [ $# != 1 ] ; then 
    echo "USAGE: $0 平台(win,linux,android,ios) " 
    exit 1;
fi 


if [ $1 == "android" ];then
    echo "安卓平台发布" 
#     cp -f /root/Projects/webrtc-checkout/src/soup/lima/sources/export.hpp                           $2/
#     cp -f /root/Projects/webrtc-checkout/src/soup/lima/sources/videodecoderexport.hpp               $2/
#     cp -f /root/Projects/webrtc-checkout/src/soup/lima/sources/videoencoderexport.hpp               $2/
#     cp -f /root/Projects/webrtc-checkout/src/soup/build/docs/android.md                             $2/
#     cp -f /root/Projects/webrtc-checkout/src/out/android/liblima.so                                 $2/android
#     cp -f /root/Projects/webrtc-checkout/src/out/android64/liblima.so                               $2/android64
    DATE=$(date +%Y-%m-%d) 
    tar -zcvf /root/Projects/webrtc-checkout/src/Android_$DATE.tar.gz -C  /root/Projects/webrtc-checkout/src/ soup/lima/sources/export.hpp  soup/lima/sources/videodecoderexport.hpp soup/lima/sources/videoencoderexport.hpp soup/build/docs/android.md out/android/liblima.so  out/android64/liblima.so 
fi




